:root {
    --dur: 3s;
    --arrowA: polygon(33% 0%,67% 0%,67% 60%,100% 60%,50% 100%,0% 60%,33% 60%);
    --arrowB: polygon(0% 37.5%,100% 37.5%,100% 62.5%,100% 62.5%,50% 62.5%,0% 62.5%,0% 62.5%);
}
body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.previewhead {
    /*border-bottom: 1px solid #CCC;*/
    padding: 0 0 5px;
    margin: 5px 8px 5px;
    overflow: hidden;
}
.previewhead .filename {
    font-size: 26px;
    height: 30px;
    line-height: 30px;
    padding: 3px 0 0 0;
    margin-right: 100px;
    white-space: normal;
    word-break: break-all;
    overflow: hidden;
}
#sheet {
    width: 100%;
}
.tab-sheet {
    height: 40px;
    line-height: 40px;
    padding-left: 10px;
    /*border-top: 1px solid #CCC;*/
    margin: 0 8px;
    overflow: hidden;
}
.tab-sheet a{
    cursor: pointer;
    padding: 3px 8px;
    background-color: #D0D0D0;
    border: 1px solid #BBBBBB;
    border-radius: 3px;
    color: #3d3d3d;
    transition: all .2s;
    font-weight: 600;
    margin-right: 5px;
}
.tab-sheet a.active{
    background-color: #FFFFFF;
    color: #42A642;

}
.tab-sheet a:hover {
    background-color: #ffffff;
}
.operation {
    position: absolute;
    right: 20px;
    top: 4px;
}
.operation .download-excel {
    margin-left: 10px;
}
/* 下载按钮样式 */
button {
    background: #255ff4;
    border-radius: 0.2em;
    color: #fff;
    cursor: pointer;
    margin: auto;
    padding: 5px 5px;
    position: relative;
    transition: background 0.15s linear;
    width: 110px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    border: none;
}
button:focus {
    outline: transparent;
}
button::-moz-focus-inner {
    border: 0;
}
button:not(:disabled):focus, button:not(:disabled):hover {
    background: #0b46da;
}
button:not(:disabled):active {
    transform: translateY(1px);
}
button:disabled {
    cursor: not-allowed;
}
button span, button:before, button:after {
    display: inline-block;
    pointer-events: none;
}
button:before, button:after {
    border-radius: 0.25em;
    opacity: 0;
    top: 1em;
    left: 1.3em;
    height: 0.5em;
    transform-origin: 0.25em 50%;
    z-index: 2;
}
button:before {
    transform: rotate(-180deg);
    width: 0.8em;
}
button:after {
    width: 1.2em;
}
button:before, button:after, .dl-icon:before, .dl-icon:after {
    content: "";
    display: block;
    position: absolute;
}
button:before, button:after, .dl-icon:before {
    background: currentColor;
}
button span + span {
    margin: auto;
    position: relative;
    top: -3px;
    font-size: 16px;
}
.dl-icon {
    margin-right: 0.5em;
    position: relative;
    width: 1.5em;
    height: 1.5em;
    top: 2px;
}
.dl-icon:before {
    clip-path: var(--arrowA);
    -webkit-clip-path: var(--arrowA);
    top: 0;
    left: calc(50% - 0.55em);
    transform-origin: 50% 100%;
    width: 1.1em;
    height: 1em;
    z-index: 1;
}
.dl-icon:after {
    background-image: linear-gradient(#0b46da,#0b46da);
    background-position: -1.5em 0;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    box-shadow:
            0.25em 0 0 inset,
            -0.25em 0 0 inset,
            0 -0.25em 0 inset;
    bottom: 0;
    width: 100%;
    height: 0.5em;
}
.dl-working:before {
    animation: checkOutA var(--dur) linear forwards;
}
.dl-working:after {
    animation: checkOutB var(--dur) linear forwards;
}
.dl-working .dl-icon {
    animation: impact var(--dur) linear forwards;
}
.dl-working .dl-icon:before {
    animation: arrowToBar var(--dur) linear forwards;
}
.dl-working .dl-icon:after {
    animation: trayToBar var(--dur) linear forwards;
}

/* Animation */
@keyframes impact {
    from, 15% {
        transform: translateY(0);
    }
    17.5% {
        transform: translateY(0.25em);
    }
    20%, to {
        transform: translateY(0);
    }
}
@keyframes arrowToBar {
    from {
        clip-path: var(--arrowA);
        -webkit-clip-path: var(--arrowA);
    }
    10% {
        clip-path: var(--arrowB);
        -webkit-clip-path: var(--arrowB);
        transform: translateY(0);
    }
    15% {
        clip-path: var(--arrowB);
        -webkit-clip-path: var(--arrowB);
        transform: translateY(0.625em);
    }
    30% {
        clip-path: var(--arrowB);
        -webkit-clip-path: var(--arrowB);
        opacity: 1;
        transform: translateY(0.125em);
    }
    35%, to {
        clip-path: var(--arrowB);
        -webkit-clip-path: var(--arrowB);
        opacity: 0;
        transform: translateY(0.125em);
    }
}
@keyframes trayToBar {
    from, 15% {
        background-color: transparent;
        border-radius: 0;
        box-shadow:
                0.25em 0 0 inset,
                -0.25em 0 0 inset,
                0 -0.25em 0 inset;
        transform: translateY(0);
    }
    15.1% {
        background-color: currentColor;
        border-radius: 0;
        box-shadow:
                0 0 0 inset,
                0 0 0 inset,
                0 0 0 0.1em inset;
        transform: translateY(0);
    }
    30% {
        background-color: currentColor;
        background-position: -1.5em 0;
        border-radius: 0.25em;
        box-shadow:
                0 0 0 inset,
                0 0 0 inset,
                0 0 0 0.1em inset;
        transform: translateY(-0.5em);
    }
    90% {
        background-color: currentColor;
        background-position: 0 0;
        border-radius: 0.25em;
        box-shadow:
                0 0 0 inset,
                0 0 0 inset,
                0 0 0 0.1em inset;
        opacity: 1;
        transform: translateY(-0.5em);
    }
    90.1%, to {
        background-color: currentColor;
        background-position: 0 0;
        border-radius: 0.25em;
        box-shadow:
                0 0 0 inset,
                0 0 0 inset,
                0 0 0 0.1em inset;
        opacity: 0;
        transform: translateY(-0.5em);
    }
}
@keyframes checkOutA {
    from, 90% {
        opacity: 0;
        transform: translate(0,0) rotate(-180deg);
    }
    90.1% {
        opacity: 1;
        width: 0.8em;
        transform: translate(0,0) rotate(-180deg);
    }
    92.5% {
        opacity: 1;
        width: 1em;
        transform: translate(0,0.5em) rotate(-120deg);
    }
    95%, to {
        opacity: 1;
        width: 1em;
        transform: translate(0,0.375em) rotate(-135deg);
    }
}
@keyframes checkOutB {
    from, 90% {
        opacity: 0;
        transform: translate(0,0) rotate(0);
    }
    90.1% {
        opacity: 1;
        width: 1.2em;
        transform: translate(0,0) rotate(0);
    }
    92.5% {
        opacity: 1;
        width: 1.6em;
        transform: translate(0,0.5em) rotate(-60deg);
    }
    95%, to {
        opacity: 1;
        width: 1.6em;
        transform: translate(0,0.375em) rotate(-45deg);
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background: #2e3138;
    }
}

/* css 动画 */
#loading{
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1;
    margin-top: 0px;
    top: 0px;
}
#loading-center{
    width: 100%;
    height: 100%;
    position: relative;
}
#loading-center-absolute {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 100px;
    width: 100px;
    margin-top: -50px;
    margin-left: -50px;
}
.object{
    width: 25px;
    height: 25px;
    background-color: rgba(255,255,255,0);
    margin-right: auto;
    margin-left: auto;
    border: 4px solid #67CF22;;
    left: 37px;
    top: 37px;
    position: absolute;
}

#first_object{
    -webkit-animation: first_object 1.4s infinite;
    animation: first_object 1.4s infinite;
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
}
#second_object{
    -webkit-animation: second_object 1.4s infinite;
    animation: second_object 1.4s infinite;
}
#third_object{
    -webkit-animation: third_object 1.4s infinite;
    animation: third_object 1.4s infinite;
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
}
#forth_object{
    -webkit-animation: forth_object 1.4s infinite;
    animation: forth_object 1.4s infinite;
}
@-webkit-keyframes first_object {
    0% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
    50% {
        -ms-transform: translate(150%,150%) scale(2,2);
        -webkit-transform: translate(150%,150%) scale(2,2);
        transform: translate(150%,150%) scale(2,2);
    }

    100% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
}
@keyframes first_object {
    0% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
    50% {
        -ms-transform: translate(150%,150%) scale(2,2);
        -webkit-transform: translate(150%,150%) scale(2,2);
        transform: translate(150%,150%) scale(2,2);
    }

    100% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
}
@-webkit-keyframes second_object {
    0% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
    50% {
        -ms-transform: translate(-150%,150%) scale(2,2);
        -webkit-transform: translate(-150%,150%) scale(2,2);
        transform: translate(-150%,150%) scale(2,2);
    }
    100% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
}
@keyframes second_object {
    0% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
    50% {
        -ms-transform: translate(-150%,150%) scale(2,2);
        -webkit-transform: translate(-150%,150%) scale(2,2);
        transform: translate(-150%,150%) scale(2,2);
    }
    100% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
}
@-webkit-keyframes third_object {
    0% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
    50% {
        -ms-transform: translate(-150%,-150%) scale(2,2);
        -webkit-transform: translate(-150%,-150%) scale(2,2);
        transform: translate(-150%,-150%) scale(2,2);
    }
    100% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
}
@keyframes third_object {
    0% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
    50% {
        -ms-transform: translate(-150%,-150%) scale(2,2);
        -webkit-transform: translate(-150%,-150%) scale(2,2);
        transform: translate(-150%,-150%) scale(2,2);
    }
    100% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
}
@-webkit-keyframes forth_object {
    0% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
    50% {
        -ms-transform: translate(150%,-150%) scale(2,2);
        -webkit-transform: translate(150%,-150%) scale(2,2);
        transform: translate(150%,-150%) scale(2,2);
    }
    100% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
}
@keyframes forth_object {
    0% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
    50% {
        -ms-transform: translate(150%,-150%) scale(2,2);
        -webkit-transform: translate(150%,-150%) scale(2,2);
        transform: translate(150%,-150%) scale(2,2);
    }
    100% {
        -ms-transform: translate(1,1) scale(1,1);
        -webkit-transform: translate(1,1) scale(1,1);
        transform: translate(1,1) scale(1,1);
    }
}